﻿using DevExpress.Xpo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class S_UserPosSetUp : BaseXPLiteObjectClass
    {
        public S_UserPosSetUp(Session session) : base(session) { }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
        }
        string fUserID;
        [Key, Persistent]
        public string UserID
        {
            get { return fUserID; }
            set { SetPropertyValue<string>("UserID", ref fUserID, value); }
        }
        B_Warehouse fStoreSaleWarehouse;
        /// <summary>
        /// 门市销售的默认仓库
        /// </summary>
        public B_Warehouse StoreSaleWarehouse
        {
            get { return fStoreSaleWarehouse; }
            set { SetPropertyValue<B_Warehouse>("StoreSaleWarehouse", ref fStoreSaleWarehouse, value); }
        }
        bool fStoreSaleDetailMerge;
        /// <summary>
        /// 门市销售明细是否合并
        /// </summary>
        public bool StoreSaleDetailMerge
        {
            get { return fStoreSaleDetailMerge; }
            set { SetPropertyValue<bool>("StoreSaleDetailMerge", ref fStoreSaleDetailMerge, value); }
        }
        B_Warehouse fDeliverySaleWarehouse;
        /// <summary>
        /// 送货销售的默认仓库
        /// </summary>
        public B_Warehouse DeliverySaleWarehouse
        {
            get { return fDeliverySaleWarehouse; }
            set { SetPropertyValue<B_Warehouse>("DeliverySaleWarehouse", ref fDeliverySaleWarehouse, value); }
        }
        bool fDeliverySaleDetailMerge;
        /// <summary>
        /// 送货销售明细是否合并
        /// </summary>
        public bool DeliverySaleDetailMerge
        {
            get { return fDeliverySaleDetailMerge; }
            set { SetPropertyValue<bool>("DeliverySaleDetailMerge", ref fDeliverySaleDetailMerge, value); }
        }
    }
}
